package com.assignwork.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @ClassName GenerateShiftsDTO
 * @Description 生成排班DTO
 * @Author dujianyu
 * @Date 2023/12/5 10:03
 */
@Data
public class GenerateShiftsDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "ruleId")
    private Long ruleId;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "初始化日期")
    private LocalDate initDate;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "结束日期")
    private LocalDate endDate;

    @ApiModelProperty(value = "生成天数")
    private Integer days;

}
